﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
using CORE;
using KM.BUS;
using KM.ENT;
using KM.Models;

namespace KM.Areas.KM.Controllers
{
    public class LoaiKhuyenmaiController : Controller
    {
        //
        // GET: /KM/LoaiKhuyenmai/
        int pageSize = 10;
        public ActionResult Index()
        {
            return View();
        }
        public PartialViewResult GetMenu( int Id)
        {

            List<entLoaiKhuyenMai> lst = new List<entLoaiKhuyenMai>();
            busLoaiKhuyenMai busLKM = new busLoaiKhuyenMai();
            
            lst = busLKM.getAllByChaId(Id);
            return PartialView(lst);
        }
        public PartialViewResult GetMenuCon(int Id)
        {
            List<entLoaiKhuyenMai> lst = new List<entLoaiKhuyenMai>();
            busLoaiKhuyenMai busLKM = new busLoaiKhuyenMai();

            lst = busLKM.getAllByChaId(Id);
            return PartialView(lst);
            
        }

    }
}
